home *** CD-ROM | disk | FTP | other *** search
/ C/C++ Users Group Library 1996 July / C-C++ Users Group Library July 1996.iso / vol_400 / 412_01 / src / noheap.cpp < prev   
Encoding:
C/C++ Source or Header  |  1993-12-28  |  240 b   |  19 lines

  1. #include <stdio.h>
  2. #include <stdlib.h>
  3. #include <new.h>
  4.  
  5. #ifdef MSC
  6. int no_mem(size_t size)
  7. {
  8.     puts("Out of memory");
  9.     exit(1);
  10.     return(0);
  11. }
  12. #else
  13. void no_mem()
  14. {
  15.     puts("Out of memory");
  16.     exit(1);
  17. }
  18. #endif
  19.